import { StoreModule } from '@ngrx/store';
import { appReducer,AppState } from './modules/app';
import { counterReducer,TestState } from './modules/test';


//type
export interface StoreState {
    test: TestState;
    app: AppState;
}

//配置需要使用的StoreModule
const StoreModuleConfig = {
    app: appReducer,
    test: counterReducer
};

//返回Store对象
export const Store = StoreModule.forRoot(StoreModuleConfig);
